<?php

// left
$colTxt = "seller_id,buyer_id,summary_type,terminal_type,span,date,hour,cvpoint,site_id,item_id,item_type,location_id,buyer_type,campaign_id,article_id,link_id,image_id,keyword_id,page_id,carrier_id,model_id,key_text,imp,imp_uniq,imp_loss,click,click_uniq,cv,cv_uniq,cvi,cvi_uniq,reject,withdraw,cost,wholesale,retail,realtime_cost,realtime_wholesale,cv_app_id,app_store_id";
$cols = explode(',', $colTxt);

$valTxt = "17896,DEFAULT,11,1,4,'2013-12-18',10,0,8,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,'',1,1,0,1,1,1,1,DEFAULT,DEFAULT,0,0,20.0,100.0,0,0,0,DEFAULT,DEFAULT";
$vals = explode(',', $valTxt);

$cnt = count($cols);
if($cnt != count($vals)) {
	$left = 'count cols != count count vals';
} else {
 for ($i = 0; $i < $cnt; $i++) {
	$left = $left . "$cols[$i]: $vals[$i]<br>";
  }
}

// right
$colTxt = "cv = 1.0, cvi = 0, reject = 0, withdraw = 0, cost = 20.0, wholesale = 100.0, retail = 0, seller_id = 17896, span = 4, date = '2013-12-18', hour = 10, summary_type = 11, site_id = 8";
$cols = explode(',', $colTxt);

$cnt = count($cols);
 for ($i = 0; $i < $cnt; $i++) {
 	$key_vals = explode('=', $cols[$i]);
	$right = $right . "$key_vals[0]: $key_vals[1]<br>";
  }


echo "<table border='0'>";
	echo "<tr>";
		echo "<td>";
			echo $left;
		echo "</td>";

		echo "<td style='padding-left: 20'>";
			echo $right;
		echo "</td>";
	echo "</tr>";
echo "</table>";



